#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QKeyEvent>
#include <QSettings>
#include "FilaPowerForm.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

public slots:
    void slot_showMessage(QString Msg);//子界面传递来了信息

protected:
    // 重写 keyPressEvent 方法以捕获键盘事件
    void keyPressEvent(QKeyEvent *event) override;



private:
    //样式
    void loadStyle(QString currentStyle = "black");

    Ui::MainWindow *ui;
    FilaPowerForm* pc_FilaPowerForm;

    QSettings* m_Settings;

    QString m_Style;

};
#endif // MAINWINDOW_H
